package com.zlzf.testlibrary.bean;

import android.content.Context;
import android.content.Intent;

import com.zlzf.testlibrary.Data;
import com.zlzf.testlibrary.TestMainActivity;

/**
 * Description: SDKInto
 * Created by dousuhong on 2018/3/20
 */
public class SDKInto {
    private String customId;
    private String appSeqId;
    private static SDKInto instance = null;
    private SDKInto() {
    }

    public static SDKInto getInstance() {
        if (instance == null) {
            instance = new SDKInto();
        }
        return instance;
    }

    public SDKInto setCustomId(String customId) {
        this.customId = customId;
        Data.bean.setCustomId(customId);
        return instance;
    }
    public String getCustomId() {
        return customId;
    }

    public SDKInto setAppSeqId(String appSeqId) {
        this.appSeqId = appSeqId;
        Data.bean.setAppSeqId(appSeqId);
        return instance;
    }
    public void GotoActivity(Context context) {
        Intent intent = new Intent(context, TestMainActivity.class);
        context.startActivity(intent);

    }
    public  void callBack(AsyncHttpCallback AsyncHttpCallback){
        AsyncHttpCallback.OnSucess("反馈数据-----------------阿斯顿发广告规划局快乐");
    }
}
